cd "C:\Users\wie-dainn\Dropbox\Work\BIHS\Replication.Package"

*Table 3
clear
use "Data\survival_CM.dta"

areg married_survival precipA_90Ndays precipA_90NdaysL1 precipA_90NdaysL2 i.birthyear i.mage i.div if female == 1 [pweight=popweight], absorb(gridcell) vce(cluster gridcell)
outreg2 using Tables\Table3.doc, replace label keep(precipA_90Ndays precipA_90NdaysL1 precipA_90NdaysL2)  title(The Impacts of Extreme Rainfall on Child Marriage: Women) addtext(Birth Year FE, Yes, Age FE, Yes, Cell FE, Yes, Division FE, Yes) dec(3)

lincom precipA_90Ndays+precipA_90NdaysL1+precipA_90NdaysL2

areg married_survival precipA_85Ndays precipA_85NdaysL1 precipA_85NdaysL2 i.birthyear i.mage i.div if female == 1 [pweight=popweight], absorb(gridcell) vce(cluster gridcell)
outreg2 using Tables\Table3.doc, append label keep(precipA_85Ndays precipA_85NdaysL1 precipA_85NdaysL2)  title(The Impacts of Extreme Rainfall on Child Marriage: Women) addtext(Birth Year FE, Yes, Age FE, Yes, Cell FE, Yes, Division FE, Yes) dec(3)

lincom precipA_85Ndays+precipA_85NdaysL1+precipA_85NdaysL2

areg married_survival precipA_75Ndays precipA_75NdaysL1 precipA_75NdaysL2 i.birthyear i.mage  i.div if female == 1 [pweight=popweight], absorb(gridcell) vce(cluster gridcell)
outreg2 using Tables\Table3.doc, append label keep(precipA_75Ndays precipA_75NdaysL1 precipA_75NdaysL2)  title(The Impacts of Extreme Rainfall on Child Marriage: Women) addtext(Birth Year FE, Yes, Age FE, Yes, Cell FE, Yes, Division FE, Yes) dec(3)

lincom precipA_75Ndays+precipA_75NdaysL1+precipA_75NdaysL2
